package com.lw.question13;

import java.util.Scanner;

/**
 * @author LW
 * @2020/10/19 11:39
 */
public class task1 {
    public static void main(String[] args) {
        int A=0,B=0,C=0;
        Scanner scanner = new Scanner(System.in);
        int score=scanner.nextInt();
        do {
            System.out.println("请输入成绩！！！知道输入-1结束");
            score = scanner.nextInt();
            if (score<60){
                C++;
            }else if (60<=score&&score<90){
                B++;
            }else if (90<=score&&score<=100){
                A++;
            }
        }while (score!=-1);

        System.out.println("学习成绩>=90 分"+A+"人");
        System.out.println("60<=学习成绩<90"+B+"人");
        System.out.println("60 分以下"+C+"人");
    }

}
